package com.googlecode.svnj.callbacks;

import java.util.Map;

/*
 * interfaced based on svn_file_rev_handler_t from svn_delta.h
 */
public interface FileRevCallback {

    /**
     * 
     * @param path
     * @param rev
     * @param revprops
     * @param resultOfMerge
     * @param propDiffs - null values in the propDiffs indicates that the
     *                    property was removed in the specified revision
     */
    public void singleRevision(String path, long rev, Map<String,String> revprops,
            boolean resultOfMerge, Map<String,String> propDiffs, boolean expectDeltas) throws Exception;
    /*
    public void beginTextDelta(String baseChecksum) throws Exception;
    */
    public void appendTextDelta(String deltaStr) throws Exception;
    public void endTextDelta() throws Exception;
}
